import React from 'react';
import {
  View,
  ScrollView,
  TouchableOpacity,
  Platform,
  Alert,
} from 'react-native';
import {Text, Button, ListItem} from '@rneui/base';
import { useMount } from 'ahooks';
import dayjs from 'dayjs';

export default ({children, ...otherProps}) => {
  useMount(() => {
    console.log("页面级检查登录", dayjs().format())
  });
  // if(1==1){
  //   return <View><Text>去登录</Text></View>
  // }
  return React.cloneElement(children, {...otherProps});
};
